package com.sean.activity;

import com.sean.MyApplication;

import android.app.Activity;
import android.app.ActivityManager;
import android.content.Intent;
import android.view.WindowManager;

public class BaseActivity extends Activity {
	
	public static final String TAG = "BaseActivity";
	
	private static MyApplication mApplication;
	
	@Override
	public void startActivity(Intent intent) {
		getMyApplication().getMainActivity().startActivityInFramework(intent);
	}
    
    public MyApplication getMyApplication() {
    	if(mApplication == null) {
    		mApplication = (MyApplication)this.getApplication();
    	}
    	return mApplication;
    }
   
}